package com.sjgtw.cloud.client.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


/**
 * @author Crystal.Sea
 * 
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfo extends BaseDomain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6402443942083382236L;
	//

	protected String sub;
	
	protected String name;
	
	protected String username;

	/**
	 * "Employee", "Supplier","Dealer","Contractor",Partner,Customer "Intern",
	 * "Temp", "External", and "Unknown"
	 */
	protected String preferred_username;
	protected String given_name;

	// for user name
	protected String family_name;
	

	/**
	 * 
	 */
	public UserInfo() {
		super();
	}


	public String getSub() {
		return sub;
	}


	public void setSub(String sub) {
		this.sub = sub;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getPreferred_username() {
		return preferred_username;
	}


	public void setPreferred_username(String preferred_username) {
		this.preferred_username = preferred_username;
	}


	public String getGiven_name() {
		return given_name;
	}


	public void setGiven_name(String given_name) {
		this.given_name = given_name;
	}


	public String getFamily_name() {
		return family_name;
	}


	public void setFamily_name(String family_name) {
		this.family_name = family_name;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("UserInfo [sub=");
		builder.append(sub);
		builder.append(", name=");
		builder.append(name);
		builder.append(", username=");
		builder.append(username);
		builder.append(", preferred_username=");
		builder.append(preferred_username);
		builder.append(", given_name=");
		builder.append(given_name);
		builder.append(", family_name=");
		builder.append(family_name);
		builder.append("]");
		return builder.toString();
	}

	
}
